import React from 'react';
import {connect} from 'react-redux';
import './App.css';

class App extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      name: 'Jack',
    }
  }
  componentDidMount() {

  }
  render() {
    const { name } = this.state;
    return (
      <React.Fragment>
        <h2>{name}</h2>
      </React.Fragment>
    )
  }
}


export default connect((state) => ({
  reduxState: state
}))(App);